package com.happy.xiao.common.rabbitmq.bean;




public class MessageSend {

    public final static int message_normal = 1;  // 普通消息
    public final static int message_delay = 2;   // 延时消息

    private String id;
    private String exchange;
    private String routingKey;
    private String message;
    private int delayTime;



    public MessageSend(String id, String exchange, String routingKey, String message) {
        this.id = id;
        this.exchange = exchange;
        this.routingKey = routingKey;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public MessageSend() {
    }

    public String getExchange() {
        return exchange;
    }

    public void setExchange(String exchange) {
        this.exchange = exchange;
    }

    public String getRoutingKey() {
        return routingKey;
    }

    public void setRoutingKey(String routingKey) {
        this.routingKey = routingKey;
    }

    public int getDelayTime() {
        return delayTime;
    }

    public void setDelayTime(int delayTime) {
        this.delayTime = delayTime;
    }


    public MessageSend(String id, String exchange, String routingKey, String message, int delayTime) {
        this.id = id;
        this.exchange = exchange;
        this.routingKey = routingKey;
        this.message = message;
        this.delayTime = delayTime;
    }
}
